package edu.fiu.cis.nursing.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

import edu.fiu.cis.nursing.shared.NursingRecord;
import edu.fiu.cis.nursing.shared.Query;
import edu.fiu.cis.nursing.shared.UserToken;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface NursingServiceAsync {
	void search(Query query, AsyncCallback<ArrayList<NursingRecord>> callback)
			throws IllegalArgumentException;

	void load(String code, AsyncCallback<NursingRecord> callback);

	void loginUser(String userId, String password,
			AsyncCallback<UserToken> callback);

	void validateCookie(String cookie, AsyncCallback<UserToken> callback);
}
